package com.csp.mingyue.global.exception;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Strive
 * @date 2018/6/22 16:21:57
 */
@Data
@NoArgsConstructor
public class BusinessException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	/**
	 * 状态码
	 */
	private int code;

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(int code, String message){
		super(message);
		this.code = code;
	}

}
